package com.system.mapper;

import com.system.pojo.ownerinfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("SELECT * from ownerinfo where Name=#{name}")
    ownerinfo finByUserName(String name);

    @Insert("insert into ownerinfo(Name,Password) values (#{name},#{md5String})")
    void add(String name, String md5String);
}
